package cn.shen.dao.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@TableName("user")
@Builder(toBuilder = true)
public class User {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("power")
    private String power;

    public User(Integer userid, String username, String password, String power) {
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.power = power;
    }
    public User() {

    }
}
